package xcmg.device.dao.entity.delivery;

import xcmg.device.infra.enums.DeliveryReceiptEnum;

import java.math.BigDecimal;
import java.util.Date;

public class DeliveryReceiptExportDO {
    private String id;

    private String billNo;

    private String orgId;

    private String orgName;

    private String dealerOrgId;

    private String dealerOrgName;

    private String shippingMethod;

    private String settlementId;

    private String settlementDesc;

    private String receiverName;

    private String receiverTel;

    private String receiverFax;

    private String receiverAddress;

    private Date deliveryDate;

    private Date arrivalDate;

    private String carrierOrgId;

    private String carrierOrgName;

    private String carrierUserName;

    private String carrierTel;

    private String carrierCar;

    private BigDecimal carrierAmount;

    private BigDecimal productAmount;

    private String auditStatus;

    private String auditDesc;

    private String auditId;

    private String auditName;

    private Date auditDate;

    private String auditMessage;

    private String deliveryStatus;

    private String deliveryDesc;

    private Boolean isDel;

    private String remark;

    private String createId;

    private String createName;

    private Date createDate;

    private String createOrgId;

    private String createOrgName;

    private String updateId;

    private Date updateDate;

    private Integer commitType;

    private String commitId;

    private Date commitTime;

    private String salesType;

    private String salesTypeDesc;

    private String freightNo;

    private String receiverSite;

    private String billType;

    private String receiveMessage;

    private Date receiveDate;

    /**
     * 添加字段  add by huhuawei
     * 2018-9-19
     * 物流基础信息表ID
     */
    private String basicId;
    /**
     * 添加字段  add by huhuawei
     * 2018-9-19
     * 承诺时间
     */
    private BigDecimal commitmentTime;

    private Integer isTimeOut;

    /**
     * 是否异常：0否 1是
     */
    private Integer isAbnormal;

    /** 出库状态 0未出库1部分出库2已出库*/
    private Integer outStatus;

    /** 新建其他入库状态 0未开始1部分完成2已完成*/
    private Integer sendStatus;

    /** 调度员*/
    private String dispatcherName;

    /** 收货地址编码*/
    private String addressCode;

    private String purchaseNo;

    private String saleNo;

    private String deliveryNo;

    /** 零件编码*/
    private String materialsNo;

    /** 零件名称*/
    private String materialsDes;

    /** 单位*/
    private String unit;

    /** 数量*/
    private BigDecimal qty;

    /** 已出库数量*/
    private BigDecimal outQty;

    private BigDecimal price;

    private BigDecimal totalPrice;

    private String serviceNo;

    private String serviceSite;

    private String serviceName;

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String getPurchaseNo() {
        return purchaseNo;
    }

    public void setPurchaseNo(String purchaseNo) {
        this.purchaseNo = purchaseNo;
    }

    public String getSaleNo() {
        return saleNo;
    }

    public void setSaleNo(String saleNo) {
        this.saleNo = saleNo;
    }

    public String getDeliveryNo() {
        return deliveryNo;
    }

    public void setDeliveryNo(String deliveryNo) {
        this.deliveryNo = deliveryNo;
    }

    public String getMaterialsNo() {
        return materialsNo;
    }

    public void setMaterialsNo(String materialsNo) {
        this.materialsNo = materialsNo;
    }

    public String getMaterialsDes() {
        return materialsDes;
    }

    public void setMaterialsDes(String materialsDes) {
        this.materialsDes = materialsDes;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public BigDecimal getQty() {
        return qty;
    }

    public void setQty(BigDecimal qty) {
        this.qty = qty;
    }

    public BigDecimal getOutQty() {
        return outQty;
    }

    public void setOutQty(BigDecimal outQty) {
        this.outQty = outQty;
    }

    public String getAddressCode() {
        return addressCode;
    }

    public void setAddressCode(String addressCode) {
        this.addressCode = addressCode;
    }

    public String getDispatcherName() {
        return dispatcherName;
    }

    public void setDispatcherName(String dispatcherName) {
        this.dispatcherName = dispatcherName;
    }

    public Integer getOutStatus() {
        return outStatus;
    }

    public void setOutStatus(Integer outStatus) {
        this.outStatus = outStatus;
    }

    public Integer getSendStatus() {
        return sendStatus;
    }

    public void setSendStatus(Integer sendStatus) {
        this.sendStatus = sendStatus;
    }

    public Integer getIsAbnormal() {
        return isAbnormal;
    }

    public void setIsAbnormal(Integer isAbnormal) {
        this.isAbnormal = isAbnormal;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getBillNo() {
        return billNo;
    }

    public void setBillNo(String billNo) {
        this.billNo = billNo == null ? null : billNo.trim();
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId == null ? null : orgId.trim();
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName == null ? null : orgName.trim();
    }

    public String getDealerOrgId() {
        return dealerOrgId;
    }

    public void setDealerOrgId(String dealerOrgId) {
        this.dealerOrgId = dealerOrgId == null ? null : dealerOrgId.trim();
    }

    public String getDealerOrgName() {
        return dealerOrgName;
    }

    public void setDealerOrgName(String dealerOrgName) {
        this.dealerOrgName = dealerOrgName == null ? null : dealerOrgName.trim();
    }

    public String getShippingMethod() {
        return shippingMethod;
    }

    public void setShippingMethod(String shippingMethod) {
        this.shippingMethod = shippingMethod == null ? null : shippingMethod.trim();
    }

    public String getSettlementId() {
        return settlementId;
    }

    public void setSettlementId(String settlementId) {
        this.settlementId = settlementId == null ? null : settlementId.trim();
    }

    public String getSettlementDesc() {
        return settlementDesc;
    }

    public void setSettlementDesc(String settlementDesc) {
        this.settlementDesc = settlementDesc == null ? null : settlementDesc.trim();
    }

    public String getReceiverName() {
        return receiverName;
    }

    public void setReceiverName(String receiverName) {
        this.receiverName = receiverName == null ? null : receiverName.trim();
    }

    public String getReceiverTel() {
        return receiverTel;
    }

    public void setReceiverTel(String receiverTel) {
        this.receiverTel = receiverTel == null ? null : receiverTel.trim();
    }

    public String getReceiverFax() {
        return receiverFax;
    }

    public void setReceiverFax(String receiverFax) {
        this.receiverFax = receiverFax == null ? null : receiverFax.trim();
    }

    public String getReceiverAddress() {
        return receiverAddress;
    }

    public void setReceiverAddress(String receiverAddress) {
        this.receiverAddress = receiverAddress == null ? null : receiverAddress.trim();
    }

    public Date getDeliveryDate() {
        return deliveryDate;
    }

    public void setDeliveryDate(Date deliveryDate) {
        this.deliveryDate = deliveryDate;
    }

    public Date getArrivalDate() {
        return arrivalDate;
    }

    public void setArrivalDate(Date arrivalDate) {
        this.arrivalDate = arrivalDate;
    }

    public String getCarrierOrgId() {
        return carrierOrgId;
    }

    public void setCarrierOrgId(String carrierOrgId) {
        this.carrierOrgId = carrierOrgId == null ? null : carrierOrgId.trim();
    }

    public String getCarrierOrgName() {
        return carrierOrgName;
    }

    public void setCarrierOrgName(String carrierOrgName) {
        this.carrierOrgName = carrierOrgName == null ? null : carrierOrgName.trim();
    }

    public String getCarrierUserName() {
        return carrierUserName;
    }

    public void setCarrierUserName(String carrierUserName) {
        this.carrierUserName = carrierUserName == null ? null : carrierUserName.trim();
    }

    public String getCarrierTel() {
        return carrierTel;
    }

    public void setCarrierTel(String carrierTel) {
        this.carrierTel = carrierTel == null ? null : carrierTel.trim();
    }

    public String getCarrierCar() {
        return carrierCar;
    }

    public void setCarrierCar(String carrierCar) {
        this.carrierCar = carrierCar == null ? null : carrierCar.trim();
    }

    public BigDecimal getCarrierAmount() {
        return carrierAmount;
    }

    public void setCarrierAmount(BigDecimal carrierAmount) {
        this.carrierAmount = carrierAmount;
    }

    public BigDecimal getProductAmount() {
        return productAmount;
    }

    public void setProductAmount(BigDecimal productAmount) {
        this.productAmount = productAmount;
    }

    public String getAuditStatus() {
        return auditStatus;
    }

    public void setAuditStatus(String auditStatus) {
        this.auditStatus = auditStatus == null ? null : auditStatus.trim();
    }

    public String getAuditDesc() {
        return auditDesc;
    }

    public void setAuditDesc(String auditDesc) {
        this.auditDesc = auditDesc == null ? null : auditDesc.trim();
    }

    public String getAuditId() {
        return auditId;
    }

    public void setAuditId(String auditId) {
        this.auditId = auditId == null ? null : auditId.trim();
    }

    public String getAuditName() {
        return auditName;
    }

    public void setAuditName(String auditName) {
        this.auditName = auditName == null ? null : auditName.trim();
    }

    public Date getAuditDate() {
        return auditDate;
    }

    public void setAuditDate(Date auditDate) {
        this.auditDate = auditDate;
    }

    public String getAuditMessage() {
        return auditMessage;
    }

    public void setAuditMessage(String auditMessage) {
        this.auditMessage = auditMessage == null ? null : auditMessage.trim();
    }

    public String getDeliveryStatus() {
        return deliveryStatus;
    }

    public void setDeliveryStatus(String deliveryStatus) {
        this.deliveryStatus = deliveryStatus == null ? null : deliveryStatus.trim();
    }

    public String getDeliveryDesc() {
        return deliveryDesc;
    }

    public void setDeliveryDesc(String deliveryDesc) {
        this.deliveryDesc = deliveryDesc == null ? null : deliveryDesc.trim();
    }

    public Boolean getIsDel() {
        return isDel;
    }

    public void setIsDel(Boolean isDel) {
        this.isDel = isDel;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public String getCreateId() {
        return createId;
    }

    public void setCreateId(String createId) {
        this.createId = createId == null ? null : createId.trim();
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName == null ? null : createName.trim();
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getCreateOrgId() {
        return createOrgId;
    }

    public void setCreateOrgId(String createOrgId) {
        this.createOrgId = createOrgId == null ? null : createOrgId.trim();
    }

    public String getCreateOrgName() {
        return createOrgName;
    }

    public void setCreateOrgName(String createOrgName) {
        this.createOrgName = createOrgName == null ? null : createOrgName.trim();
    }

    public String getUpdateId() {
        return updateId;
    }

    public void setUpdateId(String updateId) {
        this.updateId = updateId == null ? null : updateId.trim();
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Integer getCommitType() {
        return commitType;
    }

    public void setCommitType(Integer commitType) {
        this.commitType = commitType;
    }

    public String getCommitId() {
        return commitId;
    }

    public void setCommitId(String commitId) {
        this.commitId = commitId == null ? null : commitId.trim();
    }

    public Date getCommitTime() {
        return commitTime;
    }

    public void setCommitTime(Date commitTime) {
        this.commitTime = commitTime;
    }

    public String getSalesType() {
        return salesType;
    }

    public void setSalesType(String salesType) {
        this.salesType = salesType == null ? null : salesType.trim();
    }

    public String getSalesTypeDesc() {
        return salesTypeDesc;
    }

    public void setSalesTypeDesc(String salesTypeDesc) {
        this.salesTypeDesc = salesTypeDesc == null ? null : salesTypeDesc.trim();
    }

    public String getFreightNo() {
        return freightNo;
    }

    public void setFreightNo(String freightNo) {
        this.freightNo = freightNo == null ? null : freightNo.trim();
    }

    public String getReceiverSite() {
        return receiverSite;
    }

    public void setReceiverSite(String receiverSite) {
        this.receiverSite = receiverSite;
    }

    public String getBillType() {
        return billType;
    }

    public void setBillType(String billType) {
        this.billType = billType;
    }

    public String getReceiveMessage() {
        return receiveMessage;
    }

    public void setReceiveMessage(String receiveMessage) {
        this.receiveMessage = receiveMessage;
    }

    public Date getReceiveDate() {
        return receiveDate;
    }

    public void setReceiveDate(Date receiveDate) {
        this.receiveDate = receiveDate;
    }

    public String getBasicId() {
        return basicId;
    }

    public void setBasicId(String basicId) {
        this.basicId = basicId;
    }

    public BigDecimal getCommitmentTime() {
        return commitmentTime;
    }

    public void setCommitmentTime(BigDecimal commitmentTime) {
        this.commitmentTime = commitmentTime;
    }

    public Integer getIsTimeOut() {
        return isTimeOut;
    }

    public void setIsTimeOut(Integer isTimeOut) {
        this.isTimeOut = isTimeOut;
    }


    public boolean isShiped() {
        return !DeliveryReceiptEnum.DeliveryStatus.UnDelivery.toString().equals(this.deliveryStatus);
    }

    public String getServiceNo() {
        return serviceNo;
    }

    public void setServiceNo(String serviceNo) {
        this.serviceNo = serviceNo;
    }

    public String getServiceSite() {
        return serviceSite;
    }

    public void setServiceSite(String serviceSite) {
        this.serviceSite = serviceSite;
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }
}
